package com.qeeyou.apps.android.craftsman.activity.me;

import android.app.Activity;
import android.media.Image;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.TextView;

import com.qeeyou.apps.android.craftsman.R;

import org.w3c.dom.Text;

public class QuestionDetailActivity extends Activity {

    private ImageView btnBack;
    private TextView txtvTitle;
    private WebView webvDetail;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_question_detail);

        setView();

        setEvent();
    }

    private void setView() {
        btnBack = (ImageView) this.findViewById(R.id.btnBack4QuestionDetail);
        txtvTitle = (TextView) this.findViewById(R.id.txtvTitle4QuestionDetail);
        webvDetail = (WebView) this.findViewById(R.id.webvDetail4QuestionDetail);
    }

    private void setEvent() {
        btnBack.setOnClickListener(onBackClickListener);
    }

    private View.OnClickListener onBackClickListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            QuestionDetailActivity.this.finish();
        }
    };
}
